/* 基础样式延续系统风格 */
body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding: 30px 0;
}

/* 容器样式 */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 25px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);
}

/* 标题样式 */
h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    font-weight: 600;
}

h4 {
    color: #2c3e50;
    margin: 30px 0 15px;
    font-weight: 600;
    padding-left: 5px;
    border-left: 3px solid #3498db; /* 左侧蓝色标识线，区分层级 */
}

/* 提示信息（alert）样式 */
.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 14px;
    border: 1px solid transparent;
}

.alert-danger {
    background-color: #fef2f2;
    color: #dc2626;
    border-color: #fee2e2;
}

.alert-info {
    background-color: #eff8ff;
    color: #0284c7;
    border-color: #dbeafe;
}

/* 详情表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.table-bordered {
    border: 1px solid #e1e1e1;
}

.table td {
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
}

/* 表格第一列（标签列）样式 */
.table td:first-child {
    width: 30%;
    background-color: #f8f9fa;
    font-weight: 500;
    color: #2c3e50;
}

/* 角色列表样式 */
.list-group {
    margin: 10px 0;
    padding: 0;
    list-style: none;
}

.list-group-item {
    padding: 12px 15px;
    margin-bottom: 8px;
    background-color: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.list-group-item:hover {
    background-color: #f1f7fd;
}

/* 角色描述文字样式 */
.text-muted {
    color: #6b7280;
    font-size: 13px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* 按钮间距 */
.ml-2 {
    margin-left: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 0 10px;
    }

    .table td {
        padding: 10px;
        font-size: 13px;
    }

    .table td:first-child {
        width: 35%; /* 小屏幕标签列稍宽，避免文字换行 */
    }

    .btn {
        display: block;
        width: 100%;
        margin: 8px 0 !important;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        font-size: 18px;
    }
}